Tootsville::Toot-Info

Function

Toot-Info names a function, with lambda list (TOOT &OPTIONAL (PRIVATEP (AND *USER* (UUID= (PERSON-UUID *USER*) (TOOT-PLAYER TOOT))))):

Returns a JSON-compatible structure which describes TOOT.

If PRIVATEP, then private information (normally only visible to that Toot's user) is returned; otherwise, private information is dummied out or absent.

This data is returned by various functions, including TOOTSVILLE INFINITY-FINGER or TOOTSVILLE INFINITY-WARDROBE.

Data Structure

name
The name of the Toot character. See TOOTSVILLE TOOT-NAME
userName
Also the name of the Toot character, in the form in which it should appear on an avatar label. Notably, this means that child or sensitive users will have a black diamond prefixed to the name. See TOOTSVILLE TOOT-PRESENTATION-NAME
avatar
The base filename of the avatar. The actual URL for the avatar model will always be https://jumbo.tootsville.org/Assets/Avatars/5/avatar.babylon. See TOOTSVILLE TOOT-AVATAR to obtain the avatar's ID, and TOOTSVILLE AVATAR-MONIKER to obtain the name from that ID.
chatFG
The foreground (text) color of this character's chat messages. See TOOTSVILLE TOOT-CHAT-FOREGROUND-COLOR.
chatBG
The background color of the speech balloons behind the character's chat messages. See TOOTSVILLE TOOT-CHAT-BACKGROUND-COLOR.
avatarClass
This is a legacy object which describes the avatar in play, in theory. It has the following attributes: id, the unique ID for the avatar; title, always the same as avatar URL base name; filename, also the same; forFree, always true; forPaid, always false.
avatarClass_B, baseColor
The base color for the avatar's skin. Sent as two identical values. See TOOTSVILLE TOOT-BASE-COLOR
avatarClass_P, patternColor
The color for the avatars's pattern, if any. Sent as two identical values. See TOOTSVILLE TOOT-PATTERN-COLOR
avatarClass_E, padColor
The color for the avatar's pad or “extra” color. Sent as two identical values. See TOOTSVILLE TOOT-PAD-COLOR
format
Always the same as avatar now.
colors
The list of base, pattern, and extra color, a third time, as an array-like object; keys are 0 for base color, 1 for pad color, and 2 for pattern color.
inRoom
No longer returned; always reads exactly “@Tootsville
vars
No longer returned; always nil.
clothes
The clothing currently being worn by the character. For legacy reasons, the character's pattern is repeated here. Pivitz are considered clothes. See TOOTSVILLE TOOT-CLOTHES+PATTERN
pattern
The name of the pattern of the avatar, if any. See TOOTSVILLE TOOT-PATTERN
gameItem
The item currently held in the character's TRUNK or HAND slot, as appropriate to the avatar model, if any. See TOOTSVILLE TOOT-EQUIPPED-ITEM
uuid, id
The Toot character's UUID. See TOOTSVILLE TOOT-UUID
equip
If this is the requestor's Toot, a set of all inventory (equipment) as per ‘TOOT-ITEM-INFO’
childP
True if the Toot represents a child player. See TOOTSVILLE TOOT-CHILDP
childRequest
If there is an active or pending request to play from this child, this object will be attached. It contains uuid, the time the request was placedAt, when it was allowedAt or deniedAt, how long it was allowedFor, and any response text.
childCode
Only available to the user owning the Toot, this is the code to log in as the child Toot. See TOOTSVILLE TOOT-CHILD-CODE
sensitiveP
True if the Toot represents a sensitive user or a child. See TOOTSVILLE PERSON-SENSITIVEP
scaling
Scaling of the avatar in each of x, y, and z dimensions. See TOOTSVILLE TOOT-AVATAR-SCALE-X, TOOTSVILLE TOOT-AVATAR-SCALE-Y, and TOOTSVILLE TOOT-AVATAR-SCALE-Z

Changes from 1.0 to 1.1

The avatarClass object used to have fields s, which is the same as title; forVIT, which is the same as forPaid; and avatarClassID, which is the same as id. The renamed fields were supported under both names in 1.1 or 1.2 based on the setting of the global configuration variable org.starhope.appius.events.format1.0.

Changes from 1.1 to 1.2

Added scaling for “Magic Toots.”

Changes from 1.2 to 2.0

See also Deprecation section below.

Deprecation

The following elements are deprecated and will be removed in a future revision:

id
use uuid in future.
avatarClass_B,_P,_E and colors
Deprecated in favor of baseColor, patternColor, padColor.
avatarClass
This is deprecated and will be removed in future. Its purpose is better served by other fields already in the structure.
format
This is deprecated in favor of avatar

Obtaining Toot Information

Avatar information is available through several channels.

/toots/Toot-Name
Fetch only the avatar information for a single Toot from this endpoint
TOOTSVILLE INFINITY-FINGER
Fetch avatar information for a list of Toots.

File

Defined in file src/toots.lisp.